'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, TEXT } = app.Sequelize;
  const Admin_user = app.model.define('admin_user', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    session_id: STRING(50),
    account: STRING(20),
    password: STRING(50),
    username: STRING(20),
    wechat: STRING(30),
    qq: STRING(20),
    github: STRING(20),
    keywords: TEXT,
    description: TEXT,
    sendword: TEXT,
    create_time: DATE
  }, {
      freezeTableName: true,
      tableName: 'admin_user',
      timestamps: false,
    });


  return Admin_user;
};